extends layout

block content
	h1.text-center Login
	p.text-center Please Login using the form below.

	main.container
		.row
			.col-md-8.col-md-offset-2

				if errors && errors.length > 0
					.alert.alert-danger
						ul.mb-0
							each error in errors
								li #{error.msg}

				form(method= 'post', action='/api/users/login')
					.form-group
						label Username *
						input.form-control(name='username', type='text', placeholder='Enter Username', required)
					.form-group
						label Password *
						input.form-control(name='password', type='password', placeholder='Enter Password', required)
					input.btn.btn-primary(name='submit', type='submit', value='Login')
